<?php
/**
 * Created by JetBrains PhpStorm.
 * User: T420
 * Date: 9/27/12
 * Time: 10:16 PM
 * To change this template use File | Settings | File Templates.
 */
class Models_Index extends Libs_Model
{
    public function __construct()
    {
        parent::__construct();
    }
    public function getproduct($id)

    {
        $this->db->connect();
        $listPro=$this->db->executeQuery("select * from lb_product a, lb_menuproduct b where a.pfid=b.pfid and b.menuid='$id' order by pid desc limit 9");
        $this->db->disconnect();
        return $listPro;
    }


}
